package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.WaterMapper;
import com.ruoyi.system.domain.Water;
import com.ruoyi.system.service.IWaterService;

/**
 * 水滴记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-02-19
 */
@Service
public class WaterServiceImpl implements IWaterService 
{
    @Autowired
    private WaterMapper waterMapper;

    /**
     * 查询水滴记录
     * 
     * @param waterId 水滴记录主键
     * @return 水滴记录
     */
    @Override
    public Water selectWaterByWaterId(Long waterId)
    {
        return waterMapper.selectWaterByWaterId(waterId);
    }

    /**
     * 查询水滴记录列表
     * 
     * @param water 水滴记录
     * @return 水滴记录
     */
    @Override
    public List<Water> selectWaterList(Water water)
    {
        return waterMapper.selectWaterList(water);
    }

    /**
     * 新增水滴记录
     * 
     * @param water 水滴记录
     * @return 结果
     */
    @Override
    public int insertWater(Water water)
    {
        return waterMapper.insertWater(water);
    }

    /**
     * 修改水滴记录
     * 
     * @param water 水滴记录
     * @return 结果
     */
    @Override
    public int updateWater(Water water)
    {
        return waterMapper.updateWater(water);
    }

    /**
     * 批量删除水滴记录
     * 
     * @param waterIds 需要删除的水滴记录主键
     * @return 结果
     */
    @Override
    public int deleteWaterByWaterIds(Long[] waterIds)
    {
        return waterMapper.deleteWaterByWaterIds(waterIds);
    }

    /**
     * 删除水滴记录信息
     * 
     * @param waterId 水滴记录主键
     * @return 结果
     */
    @Override
    public int deleteWaterByWaterId(Long waterId)
    {
        return waterMapper.deleteWaterByWaterId(waterId);
    }
}
